package org.sbt.web;

import static org.junit.Assert.*;

import javax.annotation.Resource;

import org.junit.Test;
import org.sbt.mapper.UserMapper;
import org.sbt.model.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
	
	@Resource
	private UserMapper userMapper;
	@RequestMapping("/test")
	public String testName() {
		User u = userMapper.load(1);
		System.out.println(u);
		return "hello";
		
	}
}
